#if !defined(AFX_DLGPROTECT_H__A8937179_6CBA_4161_AFDE_3F5E31033E19__INCLUDED_)
#define AFX_DLGPROTECT_H__A8937179_6CBA_4161_AFDE_3F5E31033E19__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgProtect.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDlgProtect dialog

#include "BaseClass.h"
#include "../include/IniManager.h"

class CDlgProtect : public CDialog,public CBaseClass
{
// Construction
public:
	CDlgProtect(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlgProtect)
	enum { IDD = IDD_DLG_Protect };
	CListCtrl	m_listBuyList;
	CComboBox	m_combox_itemName;
	CComboBox	m_combox_hp2;
	CComboBox	m_combox_hp1;
	int		m_ihp1_auto;
	int		m_ihp1_user;
	int		m_ihp2_user;
	int		m_ihp2_auto;
	BOOL	m_bUsehp1;
	BOOL	m_bUsehp2;
	BOOL	m_bAutohp1;
	BOOL	m_bAutohp2;
	int		m_buyNum;
	//}}AFX_DATA

	CIniManager ini;
	BOOL ReLoadInfo();
	BOOL SaveInfo();
	BOOL ShowDlg();
	BOOL HiddenDlg();
	BOOL IninDataInfo();
	BOOL SetDlgItemLanguage();
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgProtect)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgProtect)
	virtual BOOL OnInitDialog();
	afx_msg void OnBTNBuyAdd();
	afx_msg void OnBTNBuyDel();
	afx_msg void OnBTNBuyEdit();
	afx_msg void OnBTNSearch();
	afx_msg void OnItemchangedLISTBuyList(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGPROTECT_H__A8937179_6CBA_4161_AFDE_3F5E31033E19__INCLUDED_)
